package model

import "time"

type SysRole struct {
	RoleId            int       `json:"roleId" gorm:"column:role_id;primaryKey"` //表示主键
	RoleName          int       `json:"roleName" gorm:"role_name"`
	RoleKey           string    `json:"roleKey" gorm:"role_key"`
	RoleSort          int       `json:"roleSort" gorm:"role_sort"`
	DataScope         string    `json:"dataScope" gorm:"data_scope"`
	MenuCheckStrictly bool      `json:"menuCheckStrictly" gorm:"menu_check_strictly"`
	DeptCheckStrictly bool      `json:"deptCheckStrictly" gorm:"dept_check_strictly"`
	Status            string    `json:"status" gorm:"status"`
	DelFlag           string    `json:"delFlag" gorm:"del_flag"`
	Flag              bool      `json:"flag" gorm:"flag"`
	CreateBy          string    `json:"createBy" gorm:"create_by"`
	CreateTime        time.Time `json:"createTime" gorm:"column:create_time;type:datetime;autoCreateTime"`
	UpdateBy          string    `json:"updateBy" gorm:"update_by"`
	UpdateTime        time.Time `json:"updateTime" gorm:"column:update_time;type:datetime;autoCreateTime"`
	Remark            string    `json:"remark" gorm:"remark"`
}

type SysUserRole struct {
	UserId int `json:"userId" gorm:"user_id"`
	RoleId int `json:"roleId" gorm:"role_id"`
}
